package com.enjoyor.soa.traffic.util.enums.rest;

import com.enjoyor.soa.traffic.util.enums.base.IBasicEnum;

public enum RestOperation implements IBasicEnum {

    POST("success", "创建成功"), DELETE("success", "删除成功"), PUT("success", "改修成功"), GET("success",
            "获取成功"), OTHERE("success", "操作成功");

    private final String code;
    private final String message;

    private RestOperation(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

}
